package cn.tedu.project.oa.attendanceRule.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class WorkingShift implements Serializable {

    /** 唯一标识 */
    private Long id;

    /** 班次名称 */
    private String name;

    /** 建表人ID */
    private Long userId;

    /** 建表人姓名 */
    private String username;

    //上班考勤开始时间
    private Long checkInBeginMin;
    /** 上班时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "HH:mm")
    private Date checkInTime;
    //上班考勤结束时间
    private Long checkInEndMin;


    /** 迟到记为缺勤时间 */
    private Long lateAbsences;

    /** 严重迟到时间 */
    private Long seriouslyLate;

    //下班考勤开始时间
    private Long checkOutBeginMin;
    /** 下班时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "HH:mm")
    private Date checkOutTime;
    //下班考勤结束时间
    private Long checkOutEndMin;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "HH:mm")
    private Date restStartTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "HH:mm")
    private Date restEndTime;

    private Date createTime;
    private Date updateTime;
}
